package com.ws.event;

import com.domain.entity.ApplyFriend;
import com.ws.message.MessageFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jetbrains.annotations.NotNull;

import static com.ws.message.MessageType.FRIEND_APPLY;
@EqualsAndHashCode(callSuper = true)
@Data
public class FriendEvent extends MessageFormat {
    ApplyFriend applyFriend;

    public FriendEvent(@NotNull ApplyFriend applyFriend) {
        super(FRIEND_APPLY, applyFriend.getId(), applyFriend.getApplyUserId());
        this.applyFriend = applyFriend;
    }

}
